package com.easy;

/**
 * Created by Lxk on 2019/6/2.
 */
public class Solution237 {

    public void deleteNode(ListNode node) {
        ListNode next = node.next;
        while(next.next!=null){
            node.val = next.val;
            node = next;
            next = next.next;
        }
        node.val = next.val;
        node.next = null;
    }

}
